<extend name="template/base_index" />

<block name="area_header">
<style type="text/css">
	textarea{resize: none;}
</style>
	<style type="text/css">
		img{height:20px;width:20px;}
	</style>
</block>

<block name="area_body">
	{:W('Menus/topbar')}
	<div class="admin-main container-fluid">
		{:W('Menus/left')}
		<div class="admin-main-content">
			{:W('Menus/breadcrumb')}
			<h3>举报管理</h3>
			<div class="member_access">
				<blockquote><p class="text-primary">举报记录</p></blockquote>
				<form class="form-inline" method="get" name="core_report" action="{:U('Admin/BbsMember/coreReport')}">
					<div class="form-group">
						<label>是否处理</label>
						<label class="radio-inline">
							<input type="radio" name="operate" value="1" <eq name="operate" value="1">checked="checked"</eq>  class="operate">已处理
						</label>
						<label class="radio-inline">
							<input type="radio" name="operate" value="0" class="operate"  <eq name="operate" value="0">checked="checked"</eq>>未处理
						</label>
					</div>
				</form>
				<table class="table table-striped table table-hover  table-condensed">
					<thead>
					<tr>
						<th>ID</th>
						<th>类型</th>
						<th>受检者</th>
						<th>举报人</th>
						<th>举报地址</th>
						<th>举报理由</th>
						<th>举报时间</th>
						<th>处理时间</th>
						<th>处理结果</th>
						<th>{:L('OPERATOR')}</th>
					</tr>
					</thead>
					<tbody>
					<empty name="list">
						<tr>
							<td colspan="11" class="text-center">{:L('NO_DATA')}</td>
						</tr>
						<else/>
						<volist name="list" id="vo">
							<div class="subform_{$vo.tid}">
								<input type="hidden" name="tid" value="{$vo.tid}"/>
								<input type="hidden" name="stick_value" value="<eq name='vo.stick' value='1'>0<else/>1</eq>">
								<input type="hidden" name="digest_value" value="<eq name='vo.digest' value='1'>0<else/>1</eq>">
							</div>
							<tr>
								<td>{$vo.id}</td>
								<td>{$vo.type|getReportType}</td>
								<td>
									<a href="{:U('Admin/CustomerInfo/index',array('id'=>$vo['uid']))}">{$vo.uid}</a> </td>
								<td>
									<a href="{:U('Admin/CustomerInfo/index',array('id'=>$vo['op_uid']))}">{$vo.op_uid}</a></td>
								<td>
									<a href="{$vo.url}">{$vo.url}</a></td>
								<td>
									{$vo.message}</td>
								<td>
									{$vo.date_time|date="Y-m-d H:i:s",###}</td>

								<td>
									<eq name="vo.op_time" value="0">无<else/>{$vo.op_time|date="Y-m-d H:i:s",###}</eq></td>
								<td>
									{$vo.op_result|default="无"}</td>
								<td>
									<a href="{:U('Admin/BbsMember/operatedelete',array('id'=>$vo['id']))}"  class="ajax-get confirm btn btn-sm btn-danger ">{$vo.type|getReportType}删除</a>
									<a href="{:U(CONTROLLER_NAME .'/operateCoreReport',array('id'=>$vo['id']))}" class="btn btn-primary btn-sm" >处理</a>
									<a href="{:U(CONTROLLER_NAME .'/ban',array('uid'=>$vo['uid']))}" class="btn btn-danger btn-sm ">禁言举报者</a>
								</td>

							</tr>


						</volist>
					</empty>
					</tbody>
				</table>
				<div>{$show}</div>
			</div>
		</div>
		<!-- END admin-main-content -->
	</div>
		<!-- END admin-main-->
</block>

<block name="area_footer">
	<script>
		$(".operate").click(function () {

			$("form[name='core_report']").submit();
		});
	</script>
</block>
